package com.gla.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WalletMapper {

    @Select("SELECT money FROM WALLET WHERE user_id=#{user_id}")
    Double selectByUserId(Integer user_id);

    @Select("UPDATE WALLET SET money=#{number}")
    void update(Integer user_id, Double number);
}
